<extend name="Public/base"/>
<block name="body">
    <div class="main-title">
        <h2>{:L('_PACK_STEP_ONE_')}
            <small>{:L('_PACK_STEP_TWO_VICE_')}</small>
        </h2>
    </div>

    <div class="with-padding">
        <div class="clearfix">

            <div class="alert alert-info col-xs-6">
                {:L('_PACK_MODULE_NOW_')}{:L('_COMMA_')}<strong>{$module.alias}-{$_SESSION.module}</strong>
            </div>
        </div>
        <form action="{:U('module3')}" method="post">
            <div class="clearfix">
                <neq name="rules" value="">
                    <div class="col-xs-5">
                        <p class="lead">{:L('_PACK_SYSTEM_DETECTED_AUTHORITY_')}</p>
                        <p>{:L('_PACK_AUTHORITY_CHECK_')}</p>
                        <blockquote>
                            <volist name="rules" id="one">
                                <p><label><input type="checkbox" name="default[]" value="{$one.name}"> <span class="text-primary">【{$one.id}】-{$one.title} </span>&nbsp;&nbsp;&nbsp; {$one.name}</label></p>
                            </volist>
                        </blockquote>
                        </eq>
                    </div>
                    <div class="col-xs-4">
                        <p class="lead">{:L('_PACK_SCRIPT_PREVIEW_')}</p>
                    <textarea name="auth_rule" class="form-control" style="height: 200px">{:json_encode($rules)}</textarea>
                    </div>
                    <else/>
                    <div class="alert alert-success col-xs-6">{:L('_PACK_SYSTEM_DETECTED_AUTHORITY_SKIP_')}</div>
                </neq>

            </div>

            <div class="with-padding">
                <a class="btn  btn-default" href="{:U('module1')}">
                    {:L('_STEP_PREV_')}
                </a>
                <a class="btn btn-default" href="{:U('module2')}">
                    <i class="icon-refresh"></i> {:L('_DETECT_RE_')}
                </a>
                <neq name="havent_created" value="">
                    <php>$str='disabled="disabled"';</php>
                    </ph>
                </neq>

                <input type="submit" id="next_step" style="width: 300px" title="{$title}" {$str} class="btn  btn-success"
                       value="{:L('_STEP_NEXT_')}">

                </input>


            </div>
        </form>


    </div>
</block>